//
//  NSDictionary+Extension.h
//  gzdai
//
//  Created by LaughingZhong on 15/7/22.
//  Copyright © 2015年 gzdai. All rights reserved.
//

#import <Foundation/Foundation.h>

#define CHECK_DICTIONARY(dic,key)             ([dic isKindOfClass:[NSDictionary class]] && [key isKindOfClass:[NSString class]] && dic && [dic objectForKey:key] && [dic objectForKey:key] != (NSDictionary *)[NSNull null])   //检测字典值

@interface NSDictionary (Extension)

+ (NSDictionary *)getDictionaryFromDictionary:(NSDictionary *)dic withKey:(NSString *)key;
+ (NSString *)getStringFromDictionary:(NSDictionary *)dic withKey:(NSString *)key;
+ (NSArray *)getArrayFromDictionary:(NSDictionary *)dic withKey:(NSString *)key;
+ (float)getFloatFromDictionary:(NSDictionary *)dic withKey:(NSString *)key;
+ (NSNumber *)getNumberFromDictionary:(NSDictionary *)dic withKey:(NSString *)key;

@end
